package com.crc64.comm.serialcomm;

import gnu.io.SerialPort;

/**
 * Seri bağlantıda kullanılacak olan StopBit değeri.
 * 
 * @author Bora SAYINER
 * @since 07.10.2014
 * @version 1.0.0
 */
public enum StopBit {

	// @formatter:off
	STOP_BIT_1(SerialPort.STOPBITS_1),
	STOP_BIT_1_5(SerialPort.STOPBITS_1_5),
	STOP_BIT_2(SerialPort.STOPBITS_2);
	// @formatter:on

	private final int stopBit;

	private StopBit(final int stopBit) {
		this.stopBit = stopBit;
	}

	public int getStopBit() {
		return stopBit;
	}
}
